package main

import (
	"image/color"

	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/canvas"
	"fyne.io/fyne/v2/container"
	themex "github.com/zhaocy/fyne-theme"
)

func main() {
	myApp := app.New()
	myApp.Settings().SetTheme(themex.Themex())
	myWin := myApp.NewWindow("circle")

	// 圆形
	circle := canvas.NewCircle(color.RGBA{255, 144, 154, 255})
	// 边框颜色
	circle.StrokeColor = color.RGBA{255, 172, 64, 255}
	// 边框宽度
	circle.StrokeWidth = 2
	// 起始位置
	circle.Position1 = fyne.NewPos(0, 0)
	// 结束位置
	circle.Position2 = fyne.NewPos(200, 200)

	myWin.SetContent(container.NewWithoutLayout(circle))
	myWin.Resize(fyne.NewSize(206, 450))
	myWin.ShowAndRun()
}
